from django.urls import path
from rest_framework.routers import SimpleRouter
from .views import ClassesViewSet, ClassesMemberViewSet
from rest_framework_jwt.views import  obtain_jwt_token
from rest_framework.routers import DefaultRouter

urlpatterns = [
    path('classes/<pk>/member/', ClassesMemberViewSet.as_view({'post': 'add_member'}))

]



route = DefaultRouter()
route.register('classes', ClassesViewSet)
urlpatterns += route.urls